//
//  FitPhotoModel.m
//  PerfectWorld
//
//  Created by dllo on 16/9/1.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "FitPhotoModel.h"
#import "FitPhotos.h"
@implementation FitPhotoModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"photos"]) {
        NSMutableArray<FitPhotos *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            FitPhotos * photos = [FitPhotos modelWithDic:dic];
            [array addObject:photos];
        }
        _photos = array;
    }
}

@end
